<!doctype html>
<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="applicable-device" content="pc,mobile">
<meta http-equiv="mobile-agent" content="format=html5;url={dede:field name='arcurl'/}">
<meta http-equiv="mobile-agent" content="format=xhtml;url={dede:field name='arcurl'/}">
<link href="{dede:field name='arcurl'/}" rel="canonical" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="{dede:global.cfg_templets_skin/}/style/bootstrap.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/viewer.min.js"></script>
<script language="javascript" type="text/javascript">
<!--
	function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
	  DedeXHTTP = null;
	}
	function postBadGood(ftype,fid)
	{
		var taget_obj = document.getElementById(ftype+fid);
		var saveid = GetCookie('badgoodid');
		if(saveid != null)
		{
			 var saveids = saveid.split(',');
			 var hasid = false;
			 saveid = '';
			 j = 1;
			 for(i=saveids.length-1;i>=0;i--)
			 {
			 	  if(saveids[i]==fid && hasid) continue;
			 	  else {
			 	  	if(saveids[i]==fid && !hasid) hasid = true;
			 	  	saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
			 	  	j++;
			 	  	if(j==10 && hasid) break;
			 	  	if(j==9 && !hasid) break;
			 	  }
			 }
	     if(hasid) { alert('您刚才已表决过了喔！'); return false;}
	     else saveid += ','+fid;
			 SetCookie('badgoodid',saveid,1);
		}
		else
		{
			SetCookie('badgoodid',fid,1);
		}
		//document.write("feedback.php?action="+ftype+"&fid="+fid);
		//return;
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_phpurl/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
	  DedeXHTTP = null;
	}
-->
</script>
{dede:myad name='headadcode'/}
</head>
<body>
{dede:include filename="head.htm"/}
<!-- /header -->
<div class="container-xl my-3">
  <div class="row">
    <div class="col-12 mb-3">{dede:field name='position'/}{dede:field.title/}详情</div>
    <div class="bg-white col-12 col-md-6 text-center"> 
		<div id="images" class="col-12 px-0 yp-bz">
		<img src="{dede:field.litpic function=str_replace("-lp","","@me");/}" alt="{dede:field.title/}" />
		  <script type="text/javascript">
			const viewer = new Viewer(document.getElementById('images'), {inline: true,toolbar:0,navbar:0,title:0,});</script> 
		</div>
	<div id="lieimg" class="col-12 mb-3 mb-md-0 py-1 bg-white overflow-auto list-inline tuji-list">
		<img src="{dede:field.litpic function=str_replace("-lp","","@me");/}" alt="{dede:field.title/}" /> 
		{dede:field name='litimg1' runphp='yes'}if(@me == "") @me = "";else @me = '<img src=' . '"' .@me . '"' . '/>';{/dede:field}
		{dede:field name='litimg2' runphp='yes'}if(@me == "") @me = "";else @me = '<img src=' . '"' .@me . '"' . '/>';{/dede:field}
		{dede:field name='litimg3' runphp='yes'}if(@me == "") @me = "";else @me = '<img src=' . '"' .@me . '"' . '/>';{/dede:field}
		{dede:field name='litimg4' runphp='yes'}if(@me == "") @me = "";else @me = '<img src=' . '"' .@me . '"' . '/>';{/dede:field}
		{dede:field name='litimg5' runphp='yes'}if(@me == "") @me = "";else @me = '<img src=' . '"' .@me . '"' . '/>';{/dede:field}

		  <script type="text/javascript">
			const gallery = new Viewer(document.getElementById('lieimg'));
		</script> 
	</div>
    </div>

    <div class="bg-white col-12 col-md-6 bg-yp pt-3">
      <h1 class="border-bottom pb-2">{dede:field.title/}</h1>
      <div class="text-muted mb-3">{dede:field.nbbjj/}</div>
      <div class="ft-yp"><strong>价格：</strong>￥<span class="text-danger">{dede:field.trueprice/}&nbsp;</span>元</div>
      <div><strong>品牌：</strong><span>{dede:field.brand/}</span></div>
      <div><strong>单位：</strong><span>{dede:field.units/}</span></div>
	  {dede:field name='yongtu' runphp='yes'}if(@me == "") @me = "";else @me = "
      <div class='mt-3'><strong>用途：</strong>" .@me . "</div>
      ";{/dede:field}
	  {dede:field name='jhliang' runphp='yes'}if(@me == "") @me = "";else @me = "
      <div><strong>净含量：</strong>" .@me . "</div>
      ";{/dede:field}
	  {dede:field name='zucheng' runphp='yes'}if(@me == "") @me = "";else @me = "
      <div><strong>成分：</strong>" .@me . "</div>
      ";{/dede:field}
	  <div class='my-3'>
	  <a href="https://uapi.pop800.com/web800/c.do?l=cn&type=0&n=212636&w=0" target="_blank"><img src="https://uapi.pop800.com/web800/pop.do?n=212636&s=1&w=0&t=0" border="0" title="点击这里给我发消息" style="cursor:pointer"/></a>
	  <button type="button" class="btn btn-primary btn-sm ml-3" data-toggle="modal" data-target="#exampleModal">微信咨询</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">扫一扫加微信好友咨询</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <img class="img-fluid" src="{dede:global.cfg_templets_skin/}/images/weixin.jpg"/>
      </div>
	  <div class="modal-footer">
        微信号：KingBaZhu<br>手机长按微信号复制！
      </div>
    </div>
  </div>
</div>
	  </div>
        <form class="form-inline" id="formcar" name="formcar" method="post" action="{dede:field name='phpurl'/}/posttocar.php">
                <input type="hidden" name="id" value="{dede:field.id/}" />
                <input type="hidden" name="title" value="{dede:field.title/}" />
                <input type="hidden" name="price" value="{dede:field.trueprice/}" />
                <input type="hidden" name="units" value="{dede:field.units/}" />
				
				<button type="submit" name="button" class="btn btn-success btn-lg btn-block col-md-6">立即购买</button>
				<a class="ml-md-3" href="{dede:field name='phpurl'/}/car.php" target="_blank">查看购物车</a>
        </form>
    </div>
  </div>
</div>

<div class="container-xl my-3">
  <div class="row">
  <div class="col-12 col-md-3 mt-0 pl-0 d-none d-md-block">
		{dede:arclist titlelen='255' row='8' type='image' orderby='rand'}
          <div class="inline-h4 bg-white mb-3"> <a href="[field:arcurl/]" title="[field:title/]"><img class="xgsp" src="[field:litpic/]"/></a>
			<p class="text-center"><a class="text-body" href="[field:arcurl/]" title="[field:title/]">[field:title/]</a></p>
		  </div>
          {/dede:arclist}
	<div class="sl-bar position-sticky mt-3 col-12 px-0"><a class="btn btn-success btn-lg btn-block" href="javascript:scroll(0,0)">在线下单</a></div>
  </div>
  <div class="col-12 col-md-9 bg-white">
	<div class="sp-body py-3">{dede:field.body/}</div>
	
  </div>
  </div>
</div>
<div class="container-xl my-3">
  <div class="row">
  <div class="col-12 bg-white py-3">
{dede:include file='ajaxfeedback.htm' /}
  </div>
  </div>
</div>
{dede:include filename="footer.htm"/}
<!-- /footer -->
</body>
</html>
